/**
 * Copyright 2008, Simon Sadedin, Badboy Software.
 * 
 * $Id: AssertionFailureImpl.java 16 2008-11-28 03:04:20Z ssadedin $
 *
 * This file is part of JBadboy.
 * 
 * JBadboy is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * JBadboy is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with JBadboy.  If not, see <http://www.gnu.org/licenses/>.
 */


package com.badboy.jbadboy.item;

import com.badboy.jbadboy.model.AssertionFailure;

public class AssertionFailureImpl extends AssertionFailure implements Summarizable, SummaryLeafNode {
    
    Summary summary = new Summary();
    
    public AssertionFailureImpl(String description) {
        super();
        summary.assertion();
        this.setDescription(description);
    }
    
    public AssertionFailureImpl() {
        super();
    }

    @Override
    public Summary getSummary() {
        return summary;
    }
}
